<template>
  <div class="page">
    <back-btn></back-btn>
    <div class="item">
      <div class="vertical-bar"></div>
      <h3>{{data.title}}</h3>
    </div>
    <div class="item item-text-wrap" v-html="data.content">
    </div>
  </div>
</template>
<script>
import { api } from '@/utils'
export default {
  layout: 'zhiyuan',
  data () {
    return {
      data: {}
    }
  },
  beforeMount () {
    let articleId = this.$route.query.id
    this.$axios.get(api.zhiyuanarGetOne, { params: { id: articleId } }).then(data => {
      console.log(data)
      this.data = data
    })
  }
}
</script>
<style lang="scss" scoped>
</style>
